package com.ruoyi.app.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.app.mapper.AppMediumUsersOrganizationMapper;
import com.ruoyi.app.domain.AppMediumUsersOrganization;
import com.ruoyi.app.service.IAppMediumUsersOrganizationService;

/**
 * 组织和用户关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-04
 */
@Service
public class AppMediumUsersOrganizationServiceImpl implements IAppMediumUsersOrganizationService 
{
    @Autowired
    private AppMediumUsersOrganizationMapper appMediumUsersOrganizationMapper;

    /**
     * 查询组织和用户关联
     * 
     * @param id 组织和用户关联主键
     * @return 组织和用户关联
     */
    @Override
    public AppMediumUsersOrganization selectAppMediumUsersOrganizationById(Long id)
    {
        return appMediumUsersOrganizationMapper.selectAppMediumUsersOrganizationById(id);
    }

    /**
     * 查询组织和用户关联列表
     * 
     * @param appMediumUsersOrganization 组织和用户关联
     * @return 组织和用户关联
     */
    @Override
    public List<AppMediumUsersOrganization> selectAppMediumUsersOrganizationList(AppMediumUsersOrganization appMediumUsersOrganization)
    {
        return appMediumUsersOrganizationMapper.selectAppMediumUsersOrganizationList(appMediumUsersOrganization);
    }

    /**
     * 新增组织和用户关联
     * 
     * @param appMediumUsersOrganization 组织和用户关联
     * @return 结果
     */
    @Override
    public int insertAppMediumUsersOrganization(AppMediumUsersOrganization appMediumUsersOrganization)
    {
        return appMediumUsersOrganizationMapper.insertAppMediumUsersOrganization(appMediumUsersOrganization);
    }

    /**
     * 修改组织和用户关联
     * 
     * @param appMediumUsersOrganization 组织和用户关联
     * @return 结果
     */
    @Override
    public int updateAppMediumUsersOrganization(AppMediumUsersOrganization appMediumUsersOrganization)
    {
        return appMediumUsersOrganizationMapper.updateAppMediumUsersOrganization(appMediumUsersOrganization);
    }

    /**
     * 批量删除组织和用户关联
     * 
     * @param ids 需要删除的组织和用户关联主键
     * @return 结果
     */
    @Override
    public int deleteAppMediumUsersOrganizationByIds(Long[] ids)
    {
        return appMediumUsersOrganizationMapper.deleteAppMediumUsersOrganizationByIds(ids);
    }

    /**
     * 删除组织和用户关联信息
     * 
     * @param id 组织和用户关联主键
     * @return 结果
     */
    @Override
    public int deleteAppMediumUsersOrganizationById(Long id)
    {
        return appMediumUsersOrganizationMapper.deleteAppMediumUsersOrganizationById(id);
    }
}
